home *** CD-ROM | disk | FTP | other *** search
- QBFLOW
- This program shows the relationships between the main module and
- the SUB and FUNCTION procedures in a QuickBasic source file.
-
- The source file must have been saved in TEXT format.
-
- When starting QBFLOW, add the name of the source file as a
- command line parameter without the BAS extension. If you don't,
- the program will prompt you for the name of the file to analyze.
- Entering /? or ? as a parameter will give you a help screen
- showing the proper syntax.
-
- Next the program asks for the destination of the output. Answer
- with either S, F or P for Screen, File or Printer. Screen sends
- all output to the screen and asks if you want to pause when the
- screen is full. Answer Y, N or A for Yes, No or Always. Yes will
- continue and ask again when the screen fills up, No will scroll
- continuously and Always will pause after every screen full
- without asking for this option.
-
- File sends the output to a DOS file. You will be prompted to give
- the destination file name. Answer with the complete file
- specification, including extension and path if you want to store
- it elsewhere than the default path.
-
- Printer sends the output to a printer connected to LPT1. The
- program does not check for valid output file names nor whether or
- not a printer is on-line!
-
- The program then counts the number of declare statements and then
- stores the SUB and FUNCTION names in an array.
-
- The first line of the source file must be a DECLARE statement and
- there must not be any breaks before the last DECLARE statement.
- The program stops counting when it reaches the first line which
- does not start with DECLARE.
-
- Next each line of the source file is read and checked. If either
- the word SUB or FUNCTION is the first word then the following
- lines are part of a procedure. If one of the named SUBs or
- FUNCTIONs appears in the line then that procedure is being
- called. A count is kept of the total number of calls within each
- procedure.
-
- When the program ends the total number of named procedures and
- the total number of calls in the source file are shown.
-
- The output of QBFLOW starts with the module level code and all
- of its calls in the order that they appear in the source file.
- Thus the first procedure called is listed first, then the second,
- the third etc. Next each SUB an FUNCTION is listed also with its
- called procedures. At the end of the module level code and each
- procedure the number of calls made are shown.
-
- If the same procedure gets called more than once in one
- procedure, the order that they are called is shown. The total
- number of calls line will show how many times procedure calls
- were made in the source file.
-
- See QBFLOW.FLO for a sample output using QBFLOW.BAS as the source
- file.
-
- This program was written by me in order to help keep track of the
- calls I was making in a large program I was writing and the order
- in which they occurred. You are free to use QBFLOW for your own
- private use. I make no claims of accuracy nor for any damages
- that may result from its use or misuse. The program is offered
- AS-IS.
-
- You can reach me: Martin van Kuilenburg on Compuserv 72261,2541
- Any comments, suggestions, hints etc. are welcome.
-